package com.xiaolv.web.service.impl;

import com.xiaolv.web.mapper.OrderMapper;
import com.xiaolv.web.model.Order;
import com.xiaolv.web.service.OrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper,Order> implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public void add(Order data) throws Exception {
        orderMapper.add(data);
    }

    @Override
    public List<Order> listAll() throws Exception {
        return orderMapper.listAll();
    }
}
